package com.dianqiu.common.bean;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * DqBetUserMatchId entity. @author MyEclipse Persistence Tools
 */
@Embeddable
public class DqBetUserMatchIdTO implements java.io.Serializable {

	private String userId;
	private Integer mthId;
	private Integer hndpId;
	private Integer seq;

	@Column(name = "USER_ID", nullable = false, length = 13)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "MTH_ID", nullable = false)
	public Integer getMthId() {
		return this.mthId;
	}

	public void setMthId(Integer mthId) {
		this.mthId = mthId;
	}

	@Column(name = "HNDP_ID", nullable = false)
	public Integer getHndpId() {
		return this.hndpId;
	}

	public void setHndpId(Integer hndpId) {
		this.hndpId = hndpId;
	}

	@Column(name = "SEQ", nullable = false)
	public Integer getSeq() {
		return this.seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof DqBetUserMatchIdTO))
			return false;
		DqBetUserMatchIdTO castOther = (DqBetUserMatchIdTO) other;

		return ((this.getUserId() == castOther.getUserId()) || (this
				.getUserId() != null
				&& castOther.getUserId() != null && this.getUserId().equals(
				castOther.getUserId())))
				&& ((this.getMthId() == castOther.getMthId()) || (this
						.getMthId() != null
						&& castOther.getMthId() != null && this.getMthId()
						.equals(castOther.getMthId())))
				&& ((this.getHndpId() == castOther.getHndpId()) || (this
						.getHndpId() != null
						&& castOther.getHndpId() != null && this.getHndpId()
						.equals(castOther.getHndpId())))
				&& ((this.getSeq() == castOther.getSeq()) || (this.getSeq() != null
						&& castOther.getSeq() != null && this.getSeq().equals(
						castOther.getSeq())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUserId() == null ? 0 : this.getUserId().hashCode());
		result = 37 * result
				+ (getMthId() == null ? 0 : this.getMthId().hashCode());
		result = 37 * result
				+ (getHndpId() == null ? 0 : this.getHndpId().hashCode());
		result = 37 * result
				+ (getSeq() == null ? 0 : this.getSeq().hashCode());
		return result;
	}

}